package com.zfei.gfb.request;

import com.zfei.gfb.bean.Status;
import com.zfei.gfb.bean.StatusException;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * @author fgh
 */
@Data
public class GfbQueryRequest {

    @ApiModelProperty(value = "村民名字，全称", required = true)
    private String name;

    @ApiModelProperty(value = "村落名称")
    private String villagerName;

    public void checkParam() {
        if (name == null) {
            throw new StatusException(Status.INVALID_ARGUMENT);
        }
    }
}

